<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- 引入头部 -->
{include file="common/header" /}
</head>
<body>
	<div class="layui-layout layui-layout-admin">
    <!-- 引入左侧栏 -->
    {include file="common/left" /}
	
	{block name="main"}
		<!-- main部分会被替换 -->
			会被替换
	{/block}
	{include file="common/footer" /}
	</div>
	<script>
		//JavaScript代码区域
		layui.use('element', function(){
		  var element = layui.element;
		  
		});
		/*左侧栏按钮同步*/
		var herf = window.location.href;
		var item = document.getElementsByClassName('layui-nav-item');
		if(herf.match("mantype")){
			item[0].classList.add('layui-nav-itemed');
			$('.mantype').addClass('layui-this');
		}else if(herf.match("manact")){
			item[0].classList.add('layui-nav-itemed');
			$('.manact').addClass('layui-this');
		}else if(herf.match("student")){
			item[1].classList.add('layui-nav-itemed');
			$('.student').addClass('layui-this');
		}else if(herf.match("actionlog")){
			item[1].classList.add('layui-nav-itemed');
			$('.actionlog').addClass('layui-this');
		}
	</script>
</body>
</html>
